<!doctype html><html lang="zh-Hans-CN"><head>	<meta charset="UTF-8">	<title>eval()函数的应用</title></head><body>	<h4>字符串str作为脚本代码(表达式、语句)来执行：eval(str)</h4>	<hr>	<script>		eval("x=20;y=30;document.write('x='+x+',y='+y+',x*y='+x*y)");		document.write("<br/>");		document.write("2+2="+eval("2+2"));		let abce;  //声明变量未赋值        document.write("<br/>abce="+eval(abce));	</script>	<hr>    <p><script>document.write(document.lastModified);</script><a href="index.html">返回本章目录</a></p></body></html>